package com.itheima.reggie.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

public interface DishService {
    //分页查询
    Page findByPage(Integer pageNum, Integer pageSize, String name);
//菜品新增
    void save(Dish dish);
//菜品修改回显
    Dish updateSelect(Long id);
//修改菜品
    void update(Dish dish);

    //批量删除
    void deleteByIds(List<Long> ids);
//批量停售起售
    void status(Integer sratus, List<Long> ids);
    //查询菜品列表
    List<Dish> finsAll(Long categoryId,String name);
//菜品列表
    List<Dish> findList(Long categoryId, String name);
}
